<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<link href="${pageContext.request.contextPath}/bettery/css/itao.css?v=1" rel="stylesheet" />
		<script type="text/javascript" src="${pageContext.request.contextPath}/bettery/js/bettery_common.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/bettery/js/template.js"></script>
	</head>
	<body>
	<div class='search_bar'>
	        <span class='new-btn left' onclick="javascript:window.history.back();"> <a>返回</a></span>
	        商家活动详细信息
			<span class='new-btn right' onclick="closeWindow()"> <a>关闭</a></span>
	</div>
	<div class="_wrappage" id="contentHtml">
	    
	</div>
	<script id="contentTpl" type="text/html">
	
     <div class="inf_head">
{{if imageUrl}} <img src="{{imageUrl}}" onerror="javascript:this.src='${pageContext.request.contextPath}/bettery/img/logo2.jpg'"     class="p-pic"> 
{{/if}}
{{if !imageUrl}}<img src="${pageContext.request.contextPath}/bettery/img/logo2.jpg"  class="p-pic">{{/if}}
			
	        <p>{{name}}</p>
	    </div>
	    <div class="informations">
	        <strong>商家信息</strong><br/>
	        商家名称：<span>{{name}}</span><br/>
	        商家地址：<span>{{address}}</span>
	    </div>
	    <div class="informations">
	        <strong>活动详情</strong><br/>
	        活动时间：<span>{{actiBeginTime}} 至 {{actiEndTime}}</span>
	        <p>
	        {{detailInfo}}
	        </p>
	    </div>
	    <div class="informations">
	        <strong>活动须知</strong><br/>
	        使用时间：<span>{{allowTime}}</span><br/>
	        使用规则：<span>{{useRules}}</span><br/>
	        不可用日期：<span>{{invaliDates}}</span><br/>
	    </div>
    </script>
	<script type="text/javascript">
	var json =${json};
	var html = template('contentTpl',json);
	document.getElementById('contentHtml').innerHTML = html;
	</script>
	</body>
</html>